.foo {
    width: 100%;
    height: 100%;
    min-width: 100px;
    min-height: 100px;
    color: white;
    background: dodgerblue;
    overflow: auto;
}

.fooBuildInFrom {
    opacity: 0;
}

.fooBuildIn {
    transition: all 1s ease-in;
}

.fooBuildOut {
    transition: all 1s ease-in;
}

.fooBuildOutTo {
    opacity: 0;
}
